-- GENERATED SPELL FOR [Anub'ar Warrior] --


function spell0_28732(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(49806,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28732', 582, 1)
end

function spell1_28732(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(52532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28732', 579, 1)
end

function Sorts_28732(pUnit, Event)
local choix_sorts_28732 = math.random(0, 1)
if choix_sorts_28732 == 0 then
pUnit:RegisterEvent('spell0_28732', 1, 1)
end
if choix_sorts_28732 == 1 then
pUnit:RegisterEvent('spell1_28732', 1, 1)
end
end

function mob28732_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28732', math.random(1500, 3000), 1)
end

function mob28732_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28732_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28732_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28732, 1, 'mob28732_Action')
RegisterUnitEvent(28732, 2, 'mob28732_Leave')
RegisterUnitEvent(28732, 3, 'mob28732_Kill')
RegisterUnitEvent(28732, 4, 'mob28732_Die')
